<?php
// +----------------------------------------------------------------------
// | 牛逼网 [快乐 开放 游戏]
// +----------------------------------------------------------------------
// | Copyright (c) 2016 http://www.nniubi.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: zhy <345933361@qq.com>
// +----------------------------------------------------------------------
namespace Home\Controller;

/**
 * 前台默认控制器
 * @author zhy <345933361@qq.com>
 */
class OrderController extends HomeController
{
    /**
     * 小程序首页列表详情
     * @author zhy <345933361@qq.com>
     */
    public function index()
    {
        $id=I("get.id");
        $article=M("admin_article")->where(array("status"=>1,"id"=>$id))->field("id,title,content,url,add_time")->find();
        echo json_encode($article);

    }
}
